package br.com.assemble.hermeserp.model.pojos.pessoas;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import br.com.assemble.hermeserp.ejb.annotation.DaoClass;
import br.com.assemble.hermeserp.model.BasePojo;


/**
 * The persistent class for the TELEFONES database table.
 * 
 */
@Entity
@Table(name="TELEFONES")
@DaoClass(value="TelefoneDao", pu="hermes-pu")
public class Telefone extends BasePojo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="TEL_IDENTIFY", unique=true, nullable=false)
	private BigInteger telIdentify;

	@Column(name="TEL_DDD", nullable=false)
	private Integer telDdd;

	@Column(name="TEL_EH_PRINCIPAL", nullable=false)
	private byte telEhPrincipal;

	@Column(name="TEL_NUMERO", nullable=false)
	private Integer telNumero;

	@Column(name="TEL_TIPO", length=1)
	private Integer telTipo;

	//bi-directional many-to-one association to Pessoa
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="PES_IDENTIFY", nullable=false)
	private Pessoa pessoa;

    public Telefone() {
    }

	public BigInteger getTelIdentify() {
		return this.telIdentify;
	}

	public void setTelIdentify(BigInteger telIdentify) {
		this.telIdentify = telIdentify;
	}

	public Integer getTelDdd() {
		return this.telDdd;
	}

	public void setTelDdd(Integer telDdd) {
		this.telDdd = telDdd;
	}

	public byte getTelEhPrincipal() {
		return this.telEhPrincipal;
	}

	public void setTelEhPrincipal(byte telEhPrincipal) {
		this.telEhPrincipal = telEhPrincipal;
	}

	public Integer getTelNumero() {
		return this.telNumero;
	}

	public void setTelNumero(Integer telNumero) {
		this.telNumero = telNumero;
	}

	public Integer getTelTipo() {
		return this.telTipo;
	}

	public void setTelTipo(Integer telTipo) {
		this.telTipo = telTipo;
	}

	public Pessoa getPessoa() {
		return this.pessoa;
	}

	public void setPessoa(Pessoa pessoa) {
		this.pessoa = pessoa;
	}
	
}